package b.a.a;

import a.j.ld;
import a.j.mb;
import a.j.tb;
import org.w3c.dom.CDATASection;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Node;

import java.awt.*;
import java.awt.geom.Rectangle2D;
import java.io.IOException;
import java.io.Writer;

public class d
  extends mb
{
  private b f;
  public static boolean g;
  
  public void a(b paramb)
  {
    this.f = paramb;
  }
  
  protected b k()
  {
    return this.f;
  }
  
  protected Document l()
  {
    return k().l();
  }
  
  protected Element m()
  {
    return k().j().getTopLevelGroup(false);
  }
  
  protected void a(Element paramElement)
  {
    k().j().setTopLevelGroup(paramElement);
  }
  
  protected Element a(String paramString)
  {
    return l().createElement(paramString);
  }
  
  protected CDATASection b(String paramString)
  {
    return l().createCDATASection(paramString);
  }
  
  protected void a(Node paramNode1, Node paramNode2)
  {
    Node localNode = paramNode2.getParentNode();
    localNode.removeChild(paramNode2);
    paramNode1.appendChild(paramNode2);
    localNode.appendChild(paramNode1);
  }
  
  protected void b(Node paramNode1, Node paramNode2)
  {
    boolean bool = b.k;
    do
    {
      Node localNode;
      if ((localNode = paramNode2.getFirstChild()) == null) {
        break;
      }
      paramNode2.removeChild(localNode);
      paramNode1.appendChild(localNode);
      if (bool) {
        return;
      }
    } while (!bool);
    paramNode2.appendChild(paramNode1);
  }
  
  protected void b(Element paramElement)
  {
    k().j().getDOMTreeManager().addOtherDef(paramElement);
  }
  
  protected void a(Node paramNode, Writer paramWriter)
    throws IOException
  {
    k().a(paramNode, paramWriter);
  }
  
  public void a(Graphics2D paramGraphics2D, ld paramld)
  {
    Shape localShape = paramGraphics2D.getClip();
    if (!b.k)
    {
      if ((localShape != null) && (localShape.contains(a(paramld)))) {
        paramGraphics2D.setClip(null);
      }
      paramld.e(paramGraphics2D);
      paramGraphics2D.setClip(localShape);
    }
  }
  
  public void b(Graphics2D paramGraphics2D, ld paramld)
  {
    Shape localShape = paramGraphics2D.getClip();
    if (!b.k)
    {
      if ((localShape != null) && (localShape.contains(a(paramld)))) {
        paramGraphics2D.setClip(null);
      }
      paramld.c(paramGraphics2D);
      paramGraphics2D.setClip(localShape);
    }
  }
  
  public void a(Graphics2D paramGraphics2D, tb paramtb)
  {
    Shape localShape = paramGraphics2D.getClip();
    if (!b.k)
    {
      if ((localShape != null) && (localShape.contains(a(paramtb)))) {
        paramGraphics2D.setClip(null);
      }
      paramtb.c(paramGraphics2D);
      paramGraphics2D.setClip(localShape);
    }
  }
  
  public void b(Graphics2D paramGraphics2D, tb paramtb)
  {
    Shape localShape = paramGraphics2D.getClip();
    if (!b.k)
    {
      if ((localShape != null) && (localShape.contains(a(paramtb)))) {
        paramGraphics2D.setClip(null);
      }
      paramtb.a(paramGraphics2D);
      paramGraphics2D.setClip(localShape);
    }
  }
  
  private static Rectangle2D a(ld paramld)
  {
    Rectangle2D.Double localDouble = paramld.O();
    if (!b.k) {
      if (paramld.H()) {
        localDouble.setFrame(localDouble.getX() - 10.0D, localDouble.getY() - 10.0D, localDouble.getWidth() + 20.0D, localDouble.getHeight() + 20.0D);
      }
    }
    paramld.b(localDouble);
    return localDouble;
  }
  
  private static Rectangle2D a(tb paramtb)
  {
    Rectangle2D.Double localDouble = new Rectangle2D.Double(0.0D, 0.0D, -1.0D, -1.0D);
    paramtb.a(localDouble);
    return localDouble;
  }
}



/* Location:           E:\idea\

 * Qualified Name:     b.a.a.d

 * JD-Core Version:    0.7.0.1

 */